10261 - Ferry loading (DP, programación dinámica) && 410 - Station balance (Dijkstra...
[and.git] / 10300 - Ecological Premium / 10300.cpp
blob4a76dc38c24ab3c1a9e11faa4a46f3e0b2aec8bd
1 #include <iostream>
2 using namespace std;
4 int main(){
5 int casos;
6 cin >> casos;
7 while (casos--){
8 unsigned long long r=0, a, c;
9 unsigned i;
10 cin >> i;
11 while (i--){
12 cin >> a >> c >> c;
13 r += a*c;
15 cout << r << endl;